using UnityEngine;
using System.Collections;

public class EnemyBehaviour : MonoBehaviour {
		
	public float speed;
	public int life;
	// Use this for initialization
	
	void Update () 
	{
		float posX = transform.position.x - speed *Time.deltaTime;
		transform.position = new Vector3(posX,transform.position.y,transform.position.z);
	}
	
	void removeLife()
	{
		life --;
		if(life <= 0)
			Destroy(gameObject);
	}
}
